package com.shop.shopcommon.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum OrderStatusType {
    UNPAID(1,"待支付"),
    UNSHIPPED(2,"待发货"),
    UNRECEIVED(3,"待收货"),
    UNCOMMENT(4,"待评价"),
    FINISHED(5,"已完成"),
    CANCELED(6,"已取消");


    @EnumValue
    private final Integer code;
    @JsonValue
    private final String desc;

    OrderStatusType(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
